import request from '@/utils/request'

// 查询易制毒-管理员列表
export function listAdministrator(query) {
  return request({
    url: '/access/administrator/list',
    method: 'get',
    params: query
  })
}

// 查询易制毒-管理员详细
export function getAdministrator(adminId) {
  return request({
    url: '/access/administrator/' + adminId,
    method: 'get'
  })
}

// 新增易制毒-管理员
export function addAdministrator(data) {
  return request({
    url: '/access/administrator',
    method: 'post',
    data: data
  })
}

// 修改易制毒-管理员
export function updateAdministrator(data) {
  return request({
    url: '/access/administrator',
    method: 'put',
    data: data
  })
}

// 删除易制毒-管理员
export function delAdministrator(adminId) {
  return request({
    url: '/access/administrator/' + adminId,
    method: 'delete'
  })
}
